import request from '@/util/request.js'
/**
 * @description 首页轮播图
 * @param data
 * @returns {*}
 */
export function getSwiperListApi(data) {
	return request({
		url: '/swiperList',
		method: 'GET',
		data
	})
}
/**
 * @description 便民公示
 * @param data
 * @returns {*}
 */
export function getPublicListApi(data) {
	return request({
		url: '/noticePublicList',
		method: 'GET',
		data
	})
}
/**
 * @description 便民公示详情
 * @param data
 * @returns {*}
 */
export function getPublicDetailApi(id) {
	return request({
		url: `/noticeDetail/${id}`,
		method: 'GET'
	})
}
/**
 * @description 更新首页位置
 */
export function houseByDistance(data) {
	return request({
		url: '/houseByDistance',
		method: 'get',
		data
	})
}